package frame.spring.ioc;

/**
 * Author: shen qi han
 * Date: 2022/3/28 上午12:14
 */
public class ReflectFactory {

    public Shape getInstance(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        Shape shape = null;
        shape = (Shape) Class.forName(className).newInstance();
        return shape;
    }

}
